home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / AppleShare IP SDK / ASIP Registry / Headers / AppleShareFileServerRegistry.a next >
Encoding:
Text File  |  1998-07-17  |  13.5 KB  |  316 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        AppleShareFileServerRegistry.a
  3. ;
  4. ;    Contains:    Registry records for file server.
  5. ;
  6. ;    Version:    Technology:    AppleShare IP 6.0
  7. ;                Release:    ASIP 6.0 SDK - Friday, July 10, 1998 11:16:11 AM
  8. ;
  9. ;    Copyright:    © 1995-1998 by Apple Computer, Inc., all rights reserved.
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__APPLESHAREFILESERVERREGISTRY__') = 'UNDEFINED' THEN
  18. __APPLESHAREFILESERVERREGISTRY__ SET 1
  19.  
  20.     IF &TYPE('__FILES__') = 'UNDEFINED' THEN
  21.     include 'Files.a'
  22.     ENDIF
  23.  
  24. Str42                    RECORD 0
  25. elements                 ds.b    43
  26.                          ORG 44
  27. sizeof                     EQU *                    ; size:   $2C (44)
  28.                         ENDR
  29.  
  30.  
  31. Str199                    RECORD 0
  32. elements                 ds.b    200
  33. sizeof                     EQU *                    ; size:   $C8 (200)
  34.                         ENDR
  35.  
  36.  
  37.  
  38. kFSCreatorSig                    EQU        'ipwf'                ; Attribute Signature for FileServer Service object attributes
  39.  
  40.                                                             ; Attribute Types for FileServer Service object each attribute 
  41. kFSServerInfoType                EQU        'srvr'                ; ServerInfo
  42. kFSServerGreetingType            EQU        'gret'
  43. kFSCacheInfoType                EQU        'cach'
  44. kFSIdleUserInfoType                EQU        'idle'
  45. kFSAdminInfoType                EQU        'admm'
  46. kFSHTTPInfoType                    EQU        'http'
  47. kFSHTTPFolderType                EQU        'hfol'
  48. kFSHTTPFileType                    EQU        'hfil'
  49. kFSHTTPPluginType                EQU        'hplg'
  50. kFSMultiWebDirSig                EQU        'webd'                ; Multi Domain signature 
  51. kFSHTTPWebDirCountType            EQU        'domC'
  52. kFSHTTPWebDirType                EQU        '0000'
  53. kFSFTPInfoType                    EQU        'ftp '
  54. kFSAFPInfoType                    EQU        'afp '
  55. kFSSMBInfoType                    EQU        'smb '
  56. kFSMimeType                        EQU        'mime'
  57. kFSIPFilterType                    EQU        'filt'
  58. kFSMaxConnection                EQU        'maxc'                ; max concurrent connection 
  59. ;  Service specific advanced options 
  60.  
  61. kFSAFPTCPSig                    EQU        'afpt'                ; AFP over TCP port signature 
  62. kFSSMBInfoSig                    EQU        'smb '                ; SMB over TCP port signature 
  63. kFSHTTPInfoSig                    EQU        'http'                ; HTTP port signature 
  64. kFSFTPInfoSig                    EQU        'ftp '                ; FTP port signature 
  65.  
  66. kFSPortType                        EQU        'port'                ; port number (UInt16) for all services 
  67. kFSSessionTimeout                EQU        'ssto'                ; session timeouts for all services (SInt32) 
  68.  
  69. kFSTransferTimeout                EQU        'trto'                ; transfer timeout for kFSFTPInfoSig (SInt32) 
  70. kFSKeepAliveTimeout                EQU        'kato'                ; keep alive timeout for kFSHTTPInfoSig (SInt32) 
  71. kFSCGITimeout                    EQU        'cgto'                ; CGI timeout for kFSHTTPInfoSig (SInt32) 
  72. kFSLogSize                        EQU        'logs'                ; Log Size - for kFSHTTPInfoSig (UInt32) 
  73. ;  UAM information... 
  74.  
  75. kFSUAMInfoSig                    EQU        'uam '                ; Signature 
  76.  
  77.  
  78. kFSNumUAMS                        EQU        'uamc'                ; Number of UAMs (UInt32) 
  79. kFSUAMNames                        EQU        'uams'                ; UAM names (buffer of packed pascal strings) 
  80. ; ----------------------------------------------------------
  81. ;         Server Preference - General Information                
  82. ; ----------------------------------------------------------
  83.  
  84. kFSServerInfoVersion            EQU        1
  85.  
  86. ServerInfo                RECORD 0
  87. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  88. fileServerVersion         ds.w    1                ; offset: $2 (2)        ;  version# for file server 
  89. userActivityLimit         ds.w    1                ; offset: $4 (4)        ;  user activity limit in % 
  90. maxLogin                 ds.w    1                ; offset: $6 (6)        ;  maximum client connections 
  91. maxGuestAccess             ds.w    1                ; offset: $8 (8)        ;  maximum number of guest and anonymous logins 
  92. shutdownMinutes             ds.w    1                ; offset: $A (10)        ;  minutes until shutdown 
  93. sizeof                     EQU *                    ; size:   $C (12)
  94.                         ENDR
  95. ; ----------------------------------------------------------
  96. ;         Server Preference - connect info & Login Greeting    
  97. ; ----------------------------------------------------------
  98.  
  99. kFSServerGreetingVersion        EQU        1
  100. ServerGreeting            RECORD 0
  101. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  102. greetingMsg                 ds        Str199            ; offset: $2 (2)        ;  login greeting 
  103. sizeof                     EQU *                    ; size:   $CA (202)
  104.                         ENDR
  105. ; ----------------------------------------------------------
  106. ;         Server Preference - Additional Cache Information    
  107. ; ----------------------------------------------------------
  108.  
  109. kFSCacheInfoVersion                EQU        1
  110. CacheInfo                RECORD 0
  111. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  112. cacheForOthers             ds.l    1                ; offset: $2 (2)        ;  memory to be reserved for other applications 
  113. sizeof                     EQU *                    ; size:   $6 (6)
  114.                         ENDR
  115. ; ----------------------------------------------------------
  116. ;         Server Preference - Idle User Information            
  117. ; ----------------------------------------------------------
  118. ;  idleFlag bits. 
  119.  
  120. kFSIdleDisconEnabledMask        EQU        $0001                ; allow to disconnect idle users 
  121. kFSDisconExeptOpenFilesMask        EQU        $0002                ; if true, disconnect except open file users 
  122. kFSDisconSuperUserMask            EQU        $0004                ; if true, isconnect idel super users 
  123. kFSDisconNormalUserMask            EQU        $0008                ; if true, disconnect idle normal users 
  124. kFSDisconGuestUserMask            EQU        $0010                ; if true, disconnect idle guest users 
  125.  
  126.  
  127. kFSIdleUserInfoVersion            EQU        1
  128. IdleUserInfo            RECORD 0
  129. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  130. idleFlag                 ds.w    1                ; offset: $2 (2)        ;  see above 
  131. idleMinute                 ds.w    1                ; offset: $4 (4)        ;  max # of minute for idle users 
  132. disconnectMsg             ds        Str199            ; offset: $6 (6)        ;  disconnect message 
  133. sizeof                     EQU *                    ; size:   $CE (206)
  134.                         ENDR
  135. ; ----------------------------------------------------------
  136. ;         Server Preference - Serial Miscelleneous Information
  137. ; ----------------------------------------------------------
  138.  
  139. kFSAdminInfoVersion                EQU        1
  140. AdminInfo                RECORD 0
  141. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  142. namePhone                 ds        Str31            ; offset: $2 (2)        ;  name & phone 
  143. organization             ds        Str31            ; offset: $22 (34)        ;  organization 
  144. sizeof                     EQU *                    ; size:   $42 (66)
  145.                         ENDR
  146. ; ----------------------------------------------------------
  147. ;         Server Preference - HTTP Information                
  148. ; ----------------------------------------------------------
  149. ;  Flag bits.     
  150.  
  151. kFSMultiDomainEnabled            EQU        $0001                ; allow multi-domain support 
  152. kFSDirListingEnabled            EQU        $0002                ; allow directory listing 
  153. kFSAutoShareWebFolder            EQU        $0004                ; if on, web folder share point at start up; server will clear 
  154.  
  155. kFSHTTPServiceInfoVersion        EQU        2
  156.  
  157. kFSHTTPEnable                    EQU        1                    ; enable HTTP
  158. kFSHTTPLogEnable                EQU        1                    ; enable HTTP Log
  159. kFSHTTPGuestEnable                EQU        1                    ; guest turned on for HTTP
  160. HTTPServiceInfo            RECORD 0
  161. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  162. enabled                     ds.w    1                ; offset: $2 (2)        ;  Enable HTTP, 1-enable, 0-not enable 
  163. status                     ds.w    1                ; offset: $4 (4)
  164. logEnabled                 ds.w    1                ; offset: $6 (6)        ;  Enable HTTP Log, 1-enable, 0-not enable 
  165. maxConnect                 ds.w    1                ; offset: $8 (8)        ;  HTTP maximum client connections 
  166. guestEnabled             ds.w    1                ; offset: $A (10)        ;  Whether guest allowed for HTTP 
  167. flag                     ds.l    1                ; offset: $C (12)        ;  new field for ASIP6 
  168. sizeof                     EQU *                    ; size:   $10 (16)
  169.                         ENDR
  170. HTTPFolderRec            RECORD 0
  171. vRefNum                     ds.w    1                ; offset: $0 (0)        ;  HTML folder path vRefNum
  172. volumeName                 ds        Str27            ; offset: $2 (2)        ;  HTML folder path volume name
  173. volCreateDate             ds.l    1                ; offset: $1E (30)        ;  HTML folder path volume creation date
  174. dirID                     ds.l    1                ; offset: $22 (34)        ;  HTML folder path DirID
  175. sizeof                     EQU *                    ; size:   $26 (38)
  176.                         ENDR
  177. HTTPFileRec                RECORD 0
  178. partialPath                 ds        Str255            ; offset: $0 (0)        ;  partial path to HTML file starting from the Web folder 
  179. sizeof                     EQU *                    ; size:   $100 (256)
  180.                         ENDR
  181.  
  182. kFSPlugInEnable                    EQU        1                    ; enable Plug-ins
  183. kFSPlugInLoggingEnable            EQU        1                    ; enable Plug-in logging
  184. HTTPPlugInsRec            RECORD 0
  185. pluginEnable             ds.w    1                ; offset: $0 (0)        ;  Plug-ins,  1-enable, 0-not enable 
  186. loggingEnable             ds.w    1                ; offset: $2 (2)        ;  Plug-in logging, 1-enable, 0-not enable 
  187. memSize                     ds.l    1                ; offset: $4 (4)        ;  Plug-in memory allocation 
  188. preProcessorSpec         ds        FSSpec            ; offset: $8 (8)        ;  Preprocessor plugin spec 
  189. postProcessorSpec         ds        FSSpec            ; offset: $4E (78)        ;  Postprocessor plugin spec 
  190. errorSpec                 ds        FSSpec            ; offset: $94 (148)        ;  Error plugin spec 
  191. sizeof                     EQU *                    ; size:   $DA (218)
  192.                         ENDR
  193. VolSpec                    RECORD 0
  194. vName                     ds        Str32            ; offset: $0 (0)        ;  pascal string because FSSpec uses pascal string
  195. filler                     ds.b    1                ; offset: $21 (33)
  196. vRefNum                     ds.w    1                ; offset: $22 (34)
  197. vCreateDate                 ds.l    1                ; offset: $24 (36)
  198. sizeof                     EQU *                    ; size:   $28 (40)
  199.                         ENDR
  200.  
  201. kFSHTTPWebDirCountRecVersion    EQU        1
  202. HTTPWebDirCountRec        RECORD 0
  203. count                     ds.w    1                ; offset: $0 (0)        ;  How many HTTPWebDirRec there are 
  204. version                     ds.w    1                ; offset: $2 (2)        ;  Version of the HTTPWebDirRec 
  205. sizeof                     EQU *                    ; size:   $4 (4)
  206.                         ENDR
  207.  
  208. kFSWebFolderEnabled                EQU        1
  209.  
  210. kFSAddressTypeDNS                EQU        0
  211. kFSAddressTypeIPAddress            EQU        1
  212. HTTPWebDirRec            RECORD 0
  213. enabled                     ds.w    1                ; offset: $0 (0)        ;  1 == this web folder enabled, 0 == disabled 
  214. addressType                 ds.w    1                ; offset: $2 (2)        ;  Indicates how to decode addressText: 0 == DNS name, 1 = IP Address (in ASCII) 
  215. addressText                 ds        Str63            ; offset: $4 (4)        ;  Domain name or IP address (in ASCII) of this web folder (pascal str) See addressType field 
  216. portNumber                 ds.w    1                ; offset: $44 (68)        ;  Port number for this web folder's IP address (InetPort) 
  217. volSpec                     ds        VolSpec            ; offset: $46 (70)        ;  Volume specifier 
  218. dirID                     ds.l    1                ; offset: $6E (110)        ;  Dir ID of this web folder 
  219. sizeof                     EQU *                    ; size:   $72 (114)
  220.                         ENDR
  221. ; ----------------------------------------------------------
  222. ;         Server Preference - FTP Information                    
  223. ; ----------------------------------------------------------
  224.  
  225. kFSFTPServiceInfoVersion        EQU        1
  226. FTPServiceInfo            RECORD 0
  227. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  228. ftpEnable                 ds.w    1                ; offset: $2 (2)        ;  Enable FTP, 1-enable, 0-not enable 
  229. status                     ds.w    1                ; offset: $4 (4)
  230. ftpAnonymousEnable         ds.w    1                ; offset: $6 (6)        ;  Enable Anonymous Login, 1-enable, 0-not enable 
  231. sizeof                     EQU *                    ; size:   $8 (8)
  232.                         ENDR
  233. ; ----------------------------------------------------------
  234. ;         Server Preference - AFP Information                    
  235. ; ----------------------------------------------------------
  236.  
  237. kFSAFPServiceInfoVersion        EQU        1
  238. AFPServiceInfo            RECORD 0
  239. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  240. afpOverTCPIPEnable         ds.w    1                ; offset: $2 (2)        ;  Enable AFP over TCPIP, 1-enable, 0-not enable 
  241. afpOverTCPIPStatus         ds.w    1                ; offset: $4 (4)
  242. afpOverATalkEnable         ds.w    1                ; offset: $6 (6)        ;  Enable AFP over AppleTalk, 1-enable, 0-not enable 
  243. sizeof                     EQU *                    ; size:   $8 (8)
  244.                         ENDR
  245. ; ----------------------------------------------------------
  246. ;         Server Preference - SMB Information                    
  247. ; ----------------------------------------------------------
  248.  
  249. kFSSMBServiceInfoVersion        EQU        1
  250.  
  251. kFSSMBMaxNetBIOSnameLength        EQU        15
  252. kFSSMBMaxWorkGroupLength        EQU        15
  253. kFSSMBMaxCommentLength            EQU        43
  254. kFSSMBWINSAddressLength            EQU        62
  255. SMBServiceInfo            RECORD 0
  256. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  257. smbEnable                 ds.w    1                ; offset: $2 (2)        ;  Enable SMB, 1-enable, 0-not enable 
  258. status                     ds.w    1                ; offset: $4 (4)
  259. guestEnabled             ds.w    1                ; offset: $6 (6)        ;  Whether guest allowed for SMB 
  260. netBIOSname                 ds        Str31            ; offset: $8 (8)        ;  Server name. Limited to 15 bytes 
  261. workGroup                 ds        Str31            ; offset: $28 (40)        ;  NETBIOS group name.  Limited to 15 bytes 
  262. comment                     ds        Str63            ; offset: $48 (72)        ;  ASCII comment for the server. Limited to 43 bytes 
  263. winsEnabled                 ds.w    1                ; offset: $88 (136)        ;  Enable WINS, 1-enable, 0-not enable 
  264. winsAddress                 ds        Str63            ; offset: $8A (138)        ;  WINS IP address 
  265. sizeof                     EQU *                    ; size:   $CA (202)
  266.                         ENDR
  267. ; ----------------------------------------------------------------------
  268. ;         MIME type changes - Notify server SrvrMimeTypePrefs has changed    
  269. ; ----------------------------------------------------------------------
  270.  
  271. kFSMimeTypeChangedVersion        EQU        1
  272. MimeTypeChanged            RECORD 0
  273. version                     ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  274. counter                     ds.l    1                ; offset: $2 (2)        ;  no meaning, just for notification 
  275. sizeof                     EQU *                    ; size:   $6 (6)
  276.                         ENDR
  277. ; ----------------------------------------------------------
  278. ;         IPFilter Options - Advanced option for filtering IP 
  279. ; ----------------------------------------------------------
  280.  
  281. kFSIPFilterAllow                EQU        1
  282. ;  Structure of individual filters 
  283. IPFilterStruct            RECORD 0
  284. allow                     ds.w    1                ; offset: $0 (0)        ;  0 for disallow, 1 for allow 
  285. highIPBytes                 ds.l    1                ; offset: $2 (2)
  286. lowIPBytes                 ds.l    1                ; offset: $6 (6)
  287. sizeof                     EQU *                    ; size:   $A (10)
  288.                         ENDR
  289.  
  290. kFSMaxIPFilters                    EQU        10
  291. IPFilterInfo            RECORD 0
  292. versionNumber             ds.w    1                ; offset: $0 (0)        ;  version number for this record 
  293. numFilters                 ds.w    1                ; offset: $2 (2)        ;  numberOfIPFilters 
  294. filters                     ds.b    10 * IPFilterStruct.sizeof ; offset: $4 (4)
  295. sizeof                     EQU *                    ; size:   $68 (104)
  296.                         ENDR
  297. ; ----------------------------------------------------------
  298. ;         Max connection information                            
  299. ; ----------------------------------------------------------
  300. ;   tags for this record are type:kFSCreatorSig  and attribute:kFSMacConnextion
  301. ;   this value will be used if the max connection number encoded in serial number is 250
  302. ;
  303.  
  304.  
  305. kFSServerMaxConnectionInfoVersion EQU    1
  306. ServerMaxConnectionInfo    RECORD 0
  307. version                     ds.w    1                ; offset: $0 (0)
  308. flag                     ds.l    1                ; offset: $2 (2)        ;  reserved for future use 
  309. maxConnection             ds.l    1                ; offset: $6 (6)
  310. sizeof                     EQU *                    ; size:   $A (10)
  311.                         ENDR
  312. ;  ------------------------------------------------------------------------------------------------- 
  313.     ENDIF ; __APPLESHAREFILESERVERREGISTRY__ 
  314.  
  315.